package com.zj.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("red_packet_activity")
public class RedPacketActivity implements Serializable {
    @TableId(value = "activityId")
    private Long activityId;//"主键"
    @TableField(value = "title")
    private String title;//"活动标题"
    @TableField(value = "totalAmount")
    private Double totalAmount;//"红包总金额"
    @TableField(value = "totalPackets")
    private Integer totalPackets;//"红包总数量"
    @TableField(value = "startTime")
    private LocalDateTime startTime;//"开始时间"
    @TableField(value = "endTime")
    private LocalDateTime endTime;//"结束时间"
    @TableField(value = "status")
    private Integer status;//"状态"'0-未开始 1-进行中 2-已结束'
}
